<%--
  Created by IntelliJ IDEA.
  User: Mr_Liu
  Date: 2022/2/23
  Time: 13:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="com.Liuhang.Dao.getDepList" %>
<%@ page import="java.util.List" %>
<%@ page import="com.Liuhang.entity.department" %>
<%@ page import="com.Liuhang.Dao.getUserList" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/EmpManage.css">
</head>
<body>

<%  List list = getDepList.getList();
    request.setAttribute("list",list);%>
<section class="data">
    <table class="dataTable">
        <thead>
        <tr>
            <td>部门ID</td>
            <td>部门名字</td>
            <td>部门人数</td>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="u" items="${list}" begin="0" end="9">
            <tr>
                <td>
                    <C:out value="${u.getPid()}" />
                </td>
                <td>
                    <C:out value="${u.getDep_name()}" />
                </td>
                <td>
                    <C:out value="${getDepList.getDep_num(u.getPid())}" />
                </td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</section>
</body>
</html>
